package org.goodprinciples.oracolo.model;

import java.util.Objects;

/**
 *
 * @author Francesco Conte
 */
public class Language extends OracoloBean<Language> {
    
    private String id = null;
    private String description = null;
    
    public Language() {}

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean equals(java.lang.Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Language other = (Language) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        return this.id.hashCode();
    }

    public String toString() {
        return "Language{" + "id=" + id + ", description=" + description + '}';
    }
    
}
